Purpose
The string includes task searches an input variable for a predefined value and returns 'true' if the value is found, or 'false' if the value is not found.
Note: The string includes task is case sensitive.
Potential Use Case
You could use this task if you need to scan an email list for the word 'unsubscribe' and execute a process to remove that email address from a database.
Properties
| Incoming | Type | Description | 
|---|---|---|
| str | String | Required. The string to search. | 
| searchString | String | Required. The string to search for within str. This is case sensitive. | 
| position | Number | Optional. The character position within strto begin the search. The character position count begins at 0 (zero), which is the default. This parameter is useful if thesearchStringis known to appear more than once in thestr, and you only need to verify the existence of the second or third instance, etc. | 
| Outgoing | Type | Description | 
|---|---|---|
| result | Boolean | Returns trueif thesearchStringis found anywhere within the given string; returnsfalseif not. | 
Examples
Example 1
In this IAP example:
- The - strvariable has been statically coded as- 12 Dollars And 43 Cents.
- The - searchStringvariable to search for is- Cents.
- The - positionnumber to begin searching within the string has been statically coded as- 19.
- The - resultwill be- false, which means no instance of the- searchStringoccurs starting from position 18 of the- strvariable (starting at position 19, the- strvalue reads "ents"). 
Example 2
In this IAP example:
- The - strvariable has been statically coded as- 12 Dollars And 43 Cents.
- The - searchStringvariable to search for is- cents.
- The - positionnumber to begin searching within the string has been statically coded as- 18.
- The - resultwill be- falsebecause the- searchStringis case sensitive ("Cents" is not equal to "cents"). 
Example 3
In this IAP example:
- The - strvariable has been statically coded as- 12 Dollars And 43 Cents.
- The - searchStringvariable to search for is- Cents.
- The - positionvariable has been left blank (thereby defaulting to- 0).
- The - resultwill be- truebecause the- searchString("Cents") does appear within the- strvariable.